using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NGourd.Core.Reports;
using Xunit;

namespace NGourd.Tests
{
    public class DateTimeFormatting
    {
        [Fact]
        public void FormatDateForNUnit()
        {
            var expected = "2009-05-13";
            var date = new DateTime(2009, 5, 13);

            var actual = date.NUnitFormatDate();

            Assert.Equal(expected, actual);
        }

        [Fact]
        public void FormatTimeForNUnit()
        {
            var expected = "09:25:10";
            var date = new DateTime(2009, 5, 13, 9,25,10);

            var actual = date.NUnitFormatTime();

            Assert.Equal(expected, actual);
        }
    }

}
